using UnityEngine;
using System;
using System.IO;
using System.Collections.Generic;
using WFTools;

[Serializable]
public class WaveTable 
{ 
	/// <summary>
	///ID
	/// <summary>

	public readonly int Id;
	/// <summary>
	///一大波怪条幅
	/// <summary>

	public readonly int Warning;
	/// <summary>
	///怪物ID
	/// <summary>

	public readonly int MonsterId;
	/// <summary>
	/// 出现怪物数
	/// <summary>

	public readonly int MonsterNum;
	/// <summary>
	///攻击力
	/// <summary>

	public readonly int Atk;
	/// <summary>
	///生命值
	/// <summary>

	public readonly int HP;
	/// <summary>
	///经验值
	/// <summary>

	public readonly int Exp;
	/// <summary>
	///刷怪等待时间
	/// <summary>

	public readonly float Interval;
	/// <summary>
	///刷怪点X偏移
	/// <summary>

	public readonly float SpawnXOffset;
	/// <summary>
	///刷怪点Y偏移
	/// <summary>

	public readonly float SpawnYOffset;
	public WaveTable(List<string> datas)
{	
		int value = 0;
		Id = int.Parse(datas[0]);
		Warning = int.Parse(datas[4]);
		MonsterId = int.Parse(datas[5]);
		MonsterNum = int.Parse(datas[6]);
		Atk = int.Parse(datas[7]);
		HP = int.Parse(datas[8]);
		Exp = int.Parse(datas[9]);
		Interval = float.Parse(datas[10]);
		SpawnXOffset = float.Parse(datas[11]);
		SpawnYOffset = float.Parse(datas[12]);
	}
} 
